package com.zb.sinocare.baobiaogl.controller;

import com.zb.sinocare.baobiaogl.service.BaobiaoglService;
import com.zb.sinocare.common.domain.UserLogin;
import com.zb.sinocare.common.result.Result;
import com.zb.sinocare.common.result.ResultCodeEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/Baobiaogl")
@Api(tags = "报表管理接口")
public class BaobiaoglController {
    @Resource
    private BaobiaoglService baobiaoglServiceImpl;

    @RequestMapping(value = "find",method = RequestMethod.GET)
    @ApiOperation(value = "指标查询",notes = "检测指标统揽",httpMethod ="GET" )
    public Result findJczbTonlan(Integer page,Integer limit,String searchParams)throws Exception{
        List<UserLogin> userLogin = baobiaoglServiceImpl.findUserLogin();
        for (UserLogin login : userLogin) {
            System.out.println(login);
        }
        return Result.ok(userLogin);
    }
}
